<?php

add_action('init', 'of_options');
if (!function_exists('of_options')) {

    function of_options() {

// VARIABLES
        $themename = get_theme_data(STYLESHEETPATH . '/style.css');
        $themename = $themename['Name'];
        $shortname = "of";

// Populate OptionsFramework option in array for use in theme
        global $of_options;
        $of_options = get_option('of_options');
        $GLOBALS['template_path'] = OF_DIRECTORY;

//Access the WordPress Categories via an Array
        $of_categories = array();
        $of_categories_obj = get_categories('hide_empty=0');
        foreach ($of_categories_obj as $of_cat) {
            $of_categories[$of_cat->cat_ID] = $of_cat->cat_name;
        }
        $categories_tmp = array_unshift($of_categories, "Select a category:");

//Access the WordPress Pages via an Array
        $of_pages = array();
        $of_pages_obj = get_pages('sort_column=post_parent,menu_order');
        foreach ($of_pages_obj as $of_page) {
            $of_pages[$of_page->ID] = $of_page->post_name;
        }
        $of_pages_tmp = array_unshift($of_pages, "Select a page:");

// Image Links to Options
        $options_image_link_to = array("image" => "The Image", "post" => "The Post");

//Testing 
        $options_select = array("one", "two", "three", "four", "five");
        $options_radio = array("one" => "One", "two" => "Two", "three" => "Three", "four" => "Four", "five" => "Five");
        $align_option = array("left" => "Left", "center" => "Center", "right" => "Right");
        $contact_option = array("no" => "Show no cotact in sidebar", "one" => "Show one contact in sidebar", "two" => "Show two contacts in sidebar");

//Stylesheets Reader
        $alt_stylesheet_path = OF_FILEPATH . '/styles/';
        $alt_stylesheets = array();
        if (is_dir($alt_stylesheet_path)) {
            if ($alt_stylesheet_dir = opendir($alt_stylesheet_path)) {
                while (($alt_stylesheet_file = readdir($alt_stylesheet_dir)) !== false) {
                    if (stristr($alt_stylesheet_file, ".css") !== false) {
                        $alt_stylesheets[] = $alt_stylesheet_file;
                    }
                }
            }
        }

//More Options
        $uploads_arr = wp_upload_dir();
        $all_uploads_path = $uploads_arr['path'];
        $all_uploads = get_option('of_uploads');
        $other_entries = array("Select a number:", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19");
        $body_repeat = array("no-repeat", "repeat-x", "repeat-y", "repeat");
        $body_pos = array("top left", "top center", "top right", "center left", "center center", "center right", "bottom left", "bottom center", "bottom right");

// Set the Options Array
        $options = array();

        /*         * ******** 
          Begin Adding options here ( IMPORTANT: Add your 1st heading before you add any options )** */

        /* rank 1 start */
        //Options Heading
        $options[] = array("name" => "Rank 1",
            "type" => "heading");

        //File Uploader
        $options[] = array("name" => " Upload image",
            "desc" => "Upload a img with specify : <br/>Max-height : 65px <br/>Max-width : 200px",
            "id" => $shortname . "_img1",
            "std" => "",
            "type" => "upload");
        $url = OF_DIRECTORY . '/admin/images/';

        //Text Area
        $options[] = array("name" => "Feature",
            "desc" => "Enter text into the feature",
            "id" => $shortname . "_fea1",
            "std" => "Enter text into the feature goes here",
            "type" => "textarea");

        //Text Area
        $options[] = array("name" => "Benefits",
            "desc" => "Enter text into the benefits",
            "id" => $shortname . "_bene1",
            "std" => "Enter text into the benefits goes here",
            "type" => "textarea");

        //Text Field
        $options[] = array("name" => "Price",
            "desc" => "Enter text into the prices",
            "id" => $shortname . "_pri1",
            "std" => "Enter text into the prices goes here",
            "type" => "text");

        //Text Area
        $options[] = array("name" => "Rating",
            "desc" => "class='on' => to active star<br/>class='off' => to deactive star",
            "id" => $shortname . "_rat1",
            "std" => "",
            "type" => "textarea");

        //Text Field
        $options[] = array("name" => "Review",
            "desc" => "Enter your link review",
            "id" => $shortname . "_rev1",
            "std" => "Enter your link review witch post id",
            "type" => "text");

        //Text Field
        $options[] = array("name" => "Your Affiliate URL:",
            "desc" => "Please insert your affiliate",
            "id" => $shortname . "_vst1",
            "std" => "Please insert your affiliate link in here",
            "type" => "text");

        /* rank 1 end */

        /* rank 2 start */
        //Options Heading
        $options[] = array("name" => "Rank 2",
            "type" => "heading");

        //File Uploader
        $options[] = array("name" => " Upload image",
            "desc" => "Upload a img with specify : <br/>Max-height : 65px <br/>Max-width : 200px",
            "id" => $shortname . "_img2",
            "std" => "",
            "type" => "upload");
        $url = OF_DIRECTORY . '/admin/images/';

        //Text Area
        $options[] = array("name" => "Feature",
            "desc" => "Enter text into the feature",
            "id" => $shortname . "_fea2",
            "std" => "Enter text into the feature goes here",
            "type" => "textarea");

        //Text Area
        $options[] = array("name" => "Benefits",
            "desc" => "Enter text into the benefits",
            "id" => $shortname . "_bene2",
            "std" => "Enter text into the benefits goes here",
            "type" => "textarea");

        //Text Field
        $options[] = array("name" => "Price",
            "desc" => "Enter text into the prices",
            "id" => $shortname . "_pri2",
            "std" => "Enter your link review",
            "type" => "text");

        //Text Area
        $options[] = array("name" => "Rating",
            "desc" => "class='on' => to active star<br/>class='off' => to deactive star",
            "id" => $shortname . "_rat2",
            "std" => "",
            "type" => "textarea");

        //Text Field
        $options[] = array("name" => "Review",
            "desc" => "Enter your link review witch post id",
            "id" => $shortname . "_rev2",
            "std" => "Enter your link review",
            "type" => "text");

        //Text Field
        $options[] = array("name" => "Your Affiliate URL:",
            "desc" => "Please insert your affiliate",
            "id" => $shortname . "_vst2",
            "std" => "Please insert your affiliate link in here",
            "type" => "text");

        /* rank 2 end */

        /* rank 3 start */
        //Options Heading
        $options[] = array("name" => "Rank 3",
            "type" => "heading");

        //File Uploader
        $options[] = array("name" => " Upload image",
            "desc" => "Upload a img with specify : <br/>Max-height : 65px <br/>Max-width : 200px",
            "id" => $shortname . "_img3",
            "std" => "",
            "type" => "upload");
        $url = OF_DIRECTORY . '/admin/images/';

        //Text Area
        $options[] = array("name" => "Feature",
            "desc" => "Enter text into the feature",
            "id" => $shortname . "_fea3",
            "std" => "Enter text into the feature goes here",
            "type" => "textarea");

        //Text Area
        $options[] = array("name" => "Benefits",
            "desc" => "Enter text into the benefits",
            "id" => $shortname . "_bene3",
            "std" => "Enter text into the benefits goes here",
            "type" => "textarea");

        //Text Field
        $options[] = array("name" => "Price",
            "desc" => "Enter text into the prices",
            "id" => $shortname . "_pri3",
            "std" => "Enter text into the prices goes here",
            "type" => "text");

        //Text Area
        $options[] = array("name" => "Rating",
            "desc" => "class='on' => to active star<br/>class='off' => to deactive star",
            "id" => $shortname . "_rat3",
            "std" => "",
            "type" => "textarea");

        //Text Field
        $options[] = array("name" => "Review",
            "desc" => "Enter your link review witch post id",
            "id" => $shortname . "_rev3",
            "std" => "Enter your link review",
            "type" => "text");

        //Text Field
        $options[] = array("name" => "Your Affiliate URL:",
            "desc" => "Please insert your affiliate",
            "id" => $shortname . "_vst3",
            "std" => "Please insert your affiliate link in here",
            "type" => "text");

        /* rank 3 end */

        /* rank 4 start */
        //Options Heading
        $options[] = array("name" => "Rank 4",
            "type" => "heading");

        //File Uploader
        $options[] = array("name" => " Upload image",
            "desc" => "Upload a img with specify : <br/>Max-height : 65px <br/>Max-width : 200px",
            "id" => $shortname . "_img4",
            "std" => "",
            "type" => "upload");
        $url = OF_DIRECTORY . '/admin/images/';

        //Text Area
        $options[] = array("name" => "Feature",
            "desc" => "Enter text into the feature",
            "id" => $shortname . "_fea4",
            "std" => "Enter text into the feature goes here",
            "type" => "textarea");

        //Text Area
        $options[] = array("name" => "Benefits",
            "desc" => "Enter text into the benefits",
            "id" => $shortname . "_bene4",
            "std" => "Enter text into the benefits goes here",
            "type" => "textarea");

        //Text Field
        $options[] = array("name" => "Price",
            "desc" => "Enter text into the prices",
            "id" => $shortname . "_pri4",
            "std" => "Enter text into the prices goes here",
            "type" => "text");

        //Text Area
        $options[] = array("name" => "Rating",
            "desc" => "class='on' => to active star<br/>class='off' => to deactive star",
            "id" => $shortname . "_rat4",
            "std" => "",
            "type" => "textarea");

        //Text Field
        $options[] = array("name" => "Review",
            "desc" => "Enter your link review witch post id",
            "id" => $shortname . "_rev4",
            "std" => "Enter your link review",
            "type" => "text");

        //Text Field
        $options[] = array("name" => "Your Affiliate URL:",
            "desc" => "Please insert your affiliate",
            "id" => $shortname . "_vst4",
            "std" => "Please insert your affiliate link in here",
            "type" => "text");

        /* rank 4 end */

        /* rank 5 start */
        //Options Heading
        $options[] = array("name" => "Rank 5",
            "type" => "heading");

        //File Uploader
        $options[] = array("name" => " Upload image",
            "desc" => "Upload a img with specify : <br/>Max-height : 65px <br/>Max-width : 200px",
            "id" => $shortname . "_img5",
            "std" => "",
            "type" => "upload");
        $url = OF_DIRECTORY . '/admin/images/';

        //Text Area
        $options[] = array("name" => "Feature",
            "desc" => "Enter text into the feature",
            "id" => $shortname . "_fea5",
            "std" => "Enter text into the feature goes here",
            "type" => "textarea");

        //Text Area
        $options[] = array("name" => "Benefits",
            "desc" => "Enter text into the benefits",
            "id" => $shortname . "_bene5",
            "std" => "Enter text into the benefits goes here",
            "type" => "textarea");

        //Text Field
        $options[] = array("name" => "Price",
            "desc" => "Enter text into the prices",
            "id" => $shortname . "_pri5",
            "std" => "Enter text into the prices goes here",
            "type" => "text");

        //Text Area
        $options[] = array("name" => "Rating",
            "desc" => "class='on' => to active star<br/>class='off' => to deactive star",
            "id" => $shortname . "_rat5",
            "std" => "",
            "type" => "textarea");

        //Text Field
        $options[] = array("name" => "Review",
            "desc" => "Enter your link review witch post id",
            "id" => $shortname . "_rev5",
            "std" => "Enter your link review",
            "type" => "text");

        //Text Field
        $options[] = array("name" => "Your Affiliate URL:",
            "desc" => "Please insert your affiliate",
            "id" => $shortname . "_vst5",
            "std" => "Please insert your affiliate link in here",
            "type" => "text");

        /* rank 5 end */

        /* rank 6 start */
        //Options Heading
        $options[] = array("name" => "Rank 6",
            "type" => "heading");

        //File Uploader
        $options[] = array("name" => " Upload image",
            "desc" => "Upload a img with specify : <br/>Max-height : 65px <br/>Max-width : 200px",
            "id" => $shortname . "_img6",
            "std" => "",
            "type" => "upload");
        $url = OF_DIRECTORY . '/admin/images/';

        //Text Area
        $options[] = array("name" => "Feature",
            "desc" => "Enter text into the feature",
            "id" => $shortname . "_fea6",
            "std" => "Enter text into the feature goes here",
            "type" => "textarea");

        //Text Area
        $options[] = array("name" => "Benefits",
            "desc" => "Enter text into the benefits",
            "id" => $shortname . "_bene6",
            "std" => "Enter text into the benefits goes here",
            "type" => "textarea");

        //Text Field
        $options[] = array("name" => "Price",
            "desc" => "Enter text into the prices",
            "id" => $shortname . "_pri6",
            "std" => "Enter text into the prices goes here",
            "type" => "text");

        //Text Area
        $options[] = array("name" => "Rating",
            "desc" => "class='on' => to active star<br/>class='off' => to deactive star",
            "id" => $shortname . "_rat6",
            "std" => "",
            "type" => "textarea");

        //Text Field
        $options[] = array("name" => "Review",
            "desc" => "Enter your link review witch post id",
            "id" => $shortname . "_rev6",
            "std" => "Enter your link review",
            "type" => "text");

        //Text Field
        $options[] = array("name" => "Your Affiliate URL:",
            "desc" => "Please insert your affiliate",
            "id" => $shortname . "_vst6",
            "std" => "Please insert your affiliate link in here",
            "type" => "text");

        /* rank 6 end */

        /* rank 7 start */
        //Options Heading
        $options[] = array("name" => "Rank 7",
            "type" => "heading");

        //File Uploader
        $options[] = array("name" => " Upload image",
            "desc" => "Upload a img with specify : <br/>Max-height : 65px <br/>Max-width : 200px",
            "id" => $shortname . "_img7",
            "std" => "",
            "type" => "upload");
        $url = OF_DIRECTORY . '/admin/images/';

        //Text Area
        $options[] = array("name" => "Feature",
            "desc" => "Enter text into the feature",
            "id" => $shortname . "_fea7",
            "std" => "Enter text into the feature goes here",
            "type" => "textarea");

        //Text Area
        $options[] = array("name" => "Benefits",
            "desc" => "Enter text into the benefits",
            "id" => $shortname . "_bene7",
            "std" => "Enter text into the benefits goes here",
            "type" => "textarea");

        //Text Field
        $options[] = array("name" => "Price",
            "desc" => "Enter text into the prices",
            "id" => $shortname . "_pri7",
            "std" => "Enter text into the prices goes here",
            "type" => "text");

        //Text Area
        $options[] = array("name" => "Rating",
            "desc" => "class='on' => to active star<br/>class='off' => to deactive star",
            "id" => $shortname . "_rat7",
            "std" => "",
            "type" => "textarea");

        //Text Field
        $options[] = array("name" => "Review",
            "desc" => "Enter your link review witch post id",
            "id" => $shortname . "_rev7",
            "std" => "Enter your link review",
            "type" => "text");

        //Text Field
        $options[] = array("name" => "Your Affiliate URL:",
            "desc" => "Please insert your affiliate",
            "id" => $shortname . "_vst7",
            "std" => "Please insert your affiliate link in here",
            "type" => "text");

        /* rank 7 end */

        /* rank 8 start */
        //Options Heading
        $options[] = array("name" => "Rank 8",
            "type" => "heading");

        //File Uploader
        $options[] = array("name" => " Upload image",
            "desc" => "Upload a img with specify : <br/>Max-height : 65px <br/>Max-width : 200px",
            "id" => $shortname . "_img8",
            "std" => "",
            "type" => "upload");
        $url = OF_DIRECTORY . '/admin/images/';

        //Text Area
        $options[] = array("name" => "Feature",
            "desc" => "Enter text into the feature",
            "id" => $shortname . "_fea8",
            "std" => "Enter text into the feature goes here",
            "type" => "textarea");

        //Text Area
        $options[] = array("name" => "Benefits",
            "desc" => "Enter text into the benefits",
            "id" => $shortname . "_bene8",
            "std" => "Enter text into the benefits goes here",
            "type" => "textarea");

        //Text Field
        $options[] = array("name" => "Price",
            "desc" => "Enter text into the prices",
            "id" => $shortname . "_pri8",
            "std" => "Enter text into the prices goes here",
            "type" => "text");

        //Text Area
        $options[] = array("name" => "Rating",
            "desc" => "class='on' => to active star<br/>class='off' => to deactive star",
            "id" => $shortname . "_rat8",
            "std" => "",
            "type" => "textarea");

        //Text Field
        $options[] = array("name" => "Review",
            "desc" => "Enter your link review witch post id",
            "id" => $shortname . "_rev8",
            "std" => "Enter your link review",
            "type" => "text");

        //Text Field
        $options[] = array("name" => "Your Affiliate URL:",
            "desc" => "Please insert your affiliate",
            "id" => $shortname . "_vst8",
            "std" => "Please insert your affiliate link in here",
            "type" => "text");

        /* rank 8 end */

        /* rank 9 start */
        //Options Heading
        $options[] = array("name" => "Rank 9",
            "type" => "heading");

        //File Uploader
        $options[] = array("name" => " Upload image",
            "desc" => "Upload a img with specify : <br/>Max-height : 65px <br/>Max-width : 200px",
            "id" => $shortname . "_img9",
            "std" => "",
            "type" => "upload");
        $url = OF_DIRECTORY . '/admin/images/';

        //Text Area
        $options[] = array("name" => "Feature",
            "desc" => "Enter text into the feature",
            "id" => $shortname . "_fea9",
            "std" => "Enter text into the feature goes here",
            "type" => "textarea");

        //Text Area
        $options[] = array("name" => "Benefits",
            "desc" => "Enter text into the benefits",
            "id" => $shortname . "_bene9",
            "std" => "Enter text into the benefits goes here",
            "type" => "textarea");

        //Text Field
        $options[] = array("name" => "Price",
            "desc" => "Enter text into the prices",
            "id" => $shortname . "_pri9",
            "std" => "Enter text into the prices goes here",
            "type" => "text");

        //Text Area
        $options[] = array("name" => "Rating",
            "desc" => "class='on' => to active star<br/>class='off' => to deactive star",
            "id" => $shortname . "_rat9",
            "std" => "",
            "type" => "textarea");

        //Text Field
        $options[] = array("name" => "Review",
            "desc" => "Enter your link review witch post id",
            "id" => $shortname . "_rev9",
            "std" => "Enter your link review",
            "type" => "text");

        //Text Field
        $options[] = array("name" => "Your Affiliate URL:",
            "desc" => "Please insert your affiliate",
            "id" => $shortname . "_vst9",
            "std" => "Please insert your affiliate link in here",
            "type" => "text");

        /* rank 9 end */

        /* rank 10 start */
        //Options Heading
        $options[] = array("name" => "Rank 10",
            "type" => "heading");

        //File Uploader
        $options[] = array("name" => " Upload image",
            "desc" => "Upload a img with specify : <br/>Max-height : 65px <br/>Max-width : 200px",
            "id" => $shortname . "_img10",
            "std" => "",
            "type" => "upload");
        $url = OF_DIRECTORY . '/admin/images/';

        //Text Area
        $options[] = array("name" => "Feature",
            "desc" => "Enter text into the feature",
            "id" => $shortname . "_fea10",
            "std" => "Enter text into the feature goes here",
            "type" => "textarea");

        //Text Area
        $options[] = array("name" => "Benefits",
            "desc" => "Enter text into the benefits",
            "id" => $shortname . "_bene10",
            "std" => "Enter text into the benefits goes here",
            "type" => "textarea");

        //Text Field
        $options[] = array("name" => "Price",
            "desc" => "Enter text into the prices",
            "id" => $shortname . "_pri10",
            "std" => "Enter text into the prices goes here",
            "type" => "text");

        //Text Area
        $options[] = array("name" => "Rating",
            "desc" => "class='on' => to active star<br/>class='off' => to deactive star",
            "id" => $shortname . "_rat10",
            "std" => "",
            "type" => "textarea");

        //Text Field
        $options[] = array("name" => "Review",
            "desc" => "Enter your link review witch post id",
            "id" => $shortname . "_rev10",
            "std" => "Enter your link review",
            "type" => "text");

        //Text Field
        $options[] = array("name" => "Your Affiliate URL:",
            "desc" => "Please insert your affiliate",
            "id" => $shortname . "_vst10",
            "std" => "Please insert your affiliate link in here",
            "type" => "text");

        /* rank 10 end */

        /* Bottom bottom-desc start */
        //Options Heading
        $options[] = array("name" => "Midle Describe",
            "type" => "heading");

        //Text Field
        $options[] = array("name" => "Title",
            "desc" => "Please insert your affiliate",
            "id" => $shortname . "_titlef",
            "std" => "Please insert your affiliate link in here",
            "type" => "text");

        //Text Area
        $options[] = array("name" => "Tag",
            "desc" => "Please insert describe",
            "id" => $shortname . "_desc",
            "std" => "Lorem ipsum",
            "type" => "textarea");

        /* End bottom-desc */

        /* Bottom list start */
        //Options Heading
        $options[] = array("name" => "List",
            "type" => "heading");

        //Text Field
        $options[] = array("name" => "Title",
            "desc" => "Please insert title",
            "id" => $shortname . "_lst1",
            "std" => "Please insert your title in here",
            "type" => "text");

        //Text Area
        $options[] = array("name" => "Describe",
            "desc" => "Please insert describe",
            "id" => $shortname . "_ldes1",
            "std" => "Lorem ipsum",
            "type" => "textarea");

        //Text Field
        $options[] = array("name" => "Title",
            "desc" => "Please insert title",
            "id" => $shortname . "_lst2",
            "std" => "Please insert your title in here",
            "type" => "text");

        //Text Area
        $options[] = array("name" => "Describe",
            "desc" => "Please insert describe",
            "id" => $shortname . "_ldes2",
            "std" => "Lorem ipsum",
            "type" => "textarea");

        //Text Field
        $options[] = array("name" => "Title",
            "desc" => "Please insert title",
            "id" => $shortname . "_lst3",
            "std" => "Please insert your title in here",
            "type" => "text");

        //Text Area
        $options[] = array("name" => "Describe",
            "desc" => "Please insert describe",
            "id" => $shortname . "_ldes3",
            "std" => "Lorem ipsum",
            "type" => "textarea");

        //Text Field
        $options[] = array("name" => "Title",
            "desc" => "Please insert title",
            "id" => $shortname . "_lst4",
            "std" => "Please insert your title in here",
            "type" => "text");

        //Text Area
        $options[] = array("name" => "Describe",
            "desc" => "Please insert describe",
            "id" => $shortname . "_ldes4",
            "std" => "Lorem ipsum",
            "type" => "textarea");

        //Text Field
        $options[] = array("name" => "Title",
            "desc" => "Please insert title",
            "id" => $shortname . "_lst5",
            "std" => "Please insert your title in here",
            "type" => "text");

        //Text Area
        $options[] = array("name" => "Describe",
            "desc" => "Please insert describe",
            "id" => $shortname . "_ldes5",
            "std" => "Lorem ipsum",
            "type" => "textarea");

        /* End bottom list */

        /* Bottom desc start */
        //Options Heading
        $options[] = array("name" => "Bottom Describe",
            "type" => "heading");

        //Text Field
        $options[] = array("name" => "Title",
            "desc" => "Please insert your affiliate",
            "id" => $shortname . "_tit",
            "std" => "Please insert your affiliate link in here",
            "type" => "text");

        //Text Area
        $options[] = array("name" => "Describe",
            "desc" => "Please insert describe",
            "id" => $shortname . "_bot-left",
            "std" => "Lorem ipsum",
            "type" => "textarea");

        /* End */

        /* Ads right */
        //Options Heading
        $options[] = array("name" => "Ads right",
            "type" => "heading");

        //File Uploader
        $options[] = array("name" => "File Upload",
            "desc" => "Upload a img to adsense",
            "id" => $shortname . "_ads",
            "std" => "",
            "type" => "upload");
        $url = OF_DIRECTORY . '/admin/images/';

        /* End Ads */

        /* Recent start */
        //Options Heading
        $options[] = array("name" => "Recent",
            "type" => "heading");

        //Text Field
        $options[] = array("name" => "Title 1",
            "desc" => "Please insert your title post",
            "id" => $shortname . "_tit1",
            "std" => "Please insert your title post in here",
            "type" => "text");

        //Text Area
        $options[] = array("name" => "Content 1",
            "desc" => "Please insert your recent",
            "id" => $shortname . "_ct1",
            "std" => "Lorem ipsum",
            "type" => "textarea");

        //Text Field
        $options[] = array("name" => "Title 2",
            "desc" => "Please insert your title post",
            "id" => $shortname . "_tit2",
            "std" => "Please insert your title post in here",
            "type" => "text");

        //Text Area
        $options[] = array("name" => "Content 2",
            "desc" => "Please insert your recent",
            "id" => $shortname . "_ct2",
            "std" => "Lorem ipsum",
            "type" => "textarea");


        //Text Field
        $options[] = array("name" => "Title 3",
            "desc" => "Please insert your title post",
            "id" => $shortname . "_tit3",
            "std" => "Please insert your title post in here",
            "type" => "text");

        //Text Area
        $options[] = array("name" => "Content 3",
            "desc" => "Please insert your recent",
            "id" => $shortname . "_ct3",
            "std" => "Lorem ipsum",
            "type" => "textarea");

        /* End recent */
        
        /* Social network start */
        //Options Heading
        $options[] = array("name" => "Social Netwotk",
            "type" => "heading");

        //Text Field
        $options[] = array("name" => "RSS",
            "desc" => "Please insert your title post",
            "id" => $shortname . "_rss",
            "std" => "Please insert your link in here",
            "type" => "text");

        //Text Field
        $options[] = array("name" => "Link in",
            "desc" => "Please insert your title post",
            "id" => $shortname . "_in",
            "std" => "Please insert your link in here",
            "type" => "text");

        //Text Field
        $options[] = array("name" => "Google+",
            "desc" => "Please insert your title post",
            "id" => $shortname . "_g+",
            "std" => "Please insert your link in here",
            "type" => "text");

        //Text Field
        $options[] = array("name" => "Facebook",
            "desc" => "Please insert your title post",
            "id" => $shortname . "_fb",
            "std" => "Please insert your link in here",
            "type" => "text");

        /*         * * Stop adding options ** */

        update_option('of_template', $options);
        update_option('of_themename', $themename);
        update_option('of_shortname', $shortname);
    }

}
?>